WOLF core
WOLF: A Modular Estimation Framework for Robotics
XXXXXXXXXXXXXXXXXXXXXXXXvoid(0)" frameborder="0" name="MSearchResults" id="MSearchResults">
wolf::CaptureBase Class Reference

Base class of captures: a sensor measurement taken at a time stamp, linked to a frame, with the features extracted from it. It holds the dynamic state blocks of the sensor, if any. More...

#include <core/capture/capture_base.h>

Inheritance diagram for wolf::CaptureBase:
[legend]

Public Member Functions

 CaptureBase (const std::string &_type, const TimeStamp &_ts, SensorBasePtr _sensor_ptr=nullptr, const TypeComposite &_state_types={}, const VectorComposite &_state_vectors={}, const PriorComposite &_state_priors={})
 Constructor. More...
 
 ~CaptureBase () override=default
 
void remove (bool viral_remove_parent_without_children=false) override
 Removes the capture, its features and their factors. More...
 
bool hasChildren () const override
 Returns whether the capture has children: features or factors constraining it. More...
 
virtual FactorBasePtr emplaceDriftFactor (CaptureBasePtr _capture_origin, char _key, bool _apply_loss_function)
 Emplaces a FactorBlockDifference with zero difference between the state _key of this capture and _capture_origin, with the drift covariance of the sensor for the elapsed time. Returns the factor. More...
 
virtual bool isMotion () const
 Returns whether the capture is a motion capture (CaptureMotion) More...
 
bool process ()
 Processes the capture with its sensor (see SensorBase::process()) More...
 
unsigned int id () const override
 Returns the id of the node, unique among the nodes of its category. More...
 
TimeStamp getTimeStamp () const
 Returns the time stamp. More...
 
void setTimeStamp (const TimeStamp &_ts)
 Sets the time stamp. More...
 
void setTimeStampToNow ()
 Sets the time stamp to the current time. More...
 
FrameBaseConstPtr getFrame () const
 Returns the frame the capture belongs to (nullptr if none) More...
 
FrameBasePtr getFrame ()
 Returns the frame the capture belongs to (nullptr if none) More...
 
FeatureBaseConstPtrList getFeatureList () const
 Returns the features of the capture. More...
 
FeatureBasePtrList getFeatureList ()
 Returns the features of the capture. More...
 
bool hasFeature (const FeatureBaseConstPtr &_feature) const
 Returns whether the feature belongs to the capture. More...
 
FactorBaseConstPtrList getFactorList () const
 Returns the factors of all the features of the capture. More...
 
FactorBasePtrList getFactorList ()
 Returns the factors of all the features of the capture. More...
 
void getFactorList (FactorBaseConstPtrList &_fac_list) const
 Adds the factors of all the features of the capture to a list. More...
 
void getFactorList (FactorBasePtrList &_fac_list)
 Adds the factors of all the features of the capture to a list. More...
 
SensorBaseConstPtr getSensor () const
 Returns the sensor that produced the capture (nullptr if unknown) More...
 
SensorBasePtr getSensor ()
 Returns the sensor that produced the capture (nullptr if unknown) More...
 
virtual void setSensor (const SensorBasePtr sensor_ptr)
 Sets the sensor that produced the capture. More...
 
StateBlockConstPtr getStateBlock (const char &_key) const override
 Returns the state block of a key: the sensor's one if it is a static sensor state, the capture's own one otherwise. More...
 
StateBlockPtr getStateBlock (const char &_key) override
 Returns the state block of a key: the sensor's one if it is a static sensor state, the capture's own one otherwise. More...
 
StateBlockConstPtr getSensorP () const
 Returns the sensor state block of key 'P' (see getStateBlock()) More...
 
StateBlockPtr getSensorP ()
 Returns the sensor state block of key 'P' (see getStateBlock()) More...
 
StateBlockConstPtr getSensorO () const
 Returns the sensor state block of key 'O' (see getStateBlock()) More...
 
StateBlockPtr getSensorO ()
 Returns the sensor state block of key 'O' (see getStateBlock()) More...
 
StateBlockConstPtr getSensorIntrinsic () const
 Returns the sensor state block of key 'I' (see getStateBlock()) More...
 
StateBlockPtr getSensorIntrinsic ()
 Returns the sensor state block of key 'I' (see getStateBlock()) More...
 
void fix () override
 Fixes all the state blocks. More...
 
void unfix () override
 Unfixes all the state blocks. More...
 
void link (FrameBasePtr _frm_ptr)
 Links the capture to a frame. More...
 
virtual void printHeader (int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream, std::string _tabs="") const
 Prints the information of this node (not of its children) More...
 
void print (int depth, bool factored_by, bool metric, bool state_blocks, std::ostream &stream=std::cout, std::string _tabs="") const
 Prints this node and, depending on the depth, its children. More...
 
virtual CheckLog localCheck (bool _verbose, std::ostream &_stream, std::string _tabs="") const
 Checks the consistency of this node (not of its children) More...
 
bool check (CheckLog &_log, bool _verbose, std::ostream &_stream, std::string _tabs="") const
 Checks the consistency of this node and its children, composing the log. More...
 
CaptureBasePtr shared_from_this_capture ()
 Returns a shared pointer to this capture. More...
 
CaptureBaseConstPtr shared_from_this_capture () const
 Returns a shared pointer to this capture. More...
 
- Public Member Functions inherited from wolf::NodeStateBlocks
 NodeStateBlocks (const std::string &_category, const std::string &_type, const TypeComposite &_state_types, const VectorComposite &_state_vectors, const PriorComposite &_state_priors)
 Constructor. More...
 
virtual ~NodeStateBlocks ()
 Destructor. More...
 
virtual YAML::Node toYaml () const
 Returns a YAML node with the type, the states and their priors. More...
 
StateKeys getKeys () const
 Returns the keys of all the state blocks. More...
 
TypeComposite getStateTypes () const
 Returns the types of the states that the node can have. More...
 
bool has (const char &_sb_key) const
 Returns whether the node has a state block with this key. More...
 
bool has (const std::string &_keys) const
 Returns whether the node has state blocks with all these keys. More...
 
virtual unsigned int id () const =0
 Returns the id of the node, unique among the nodes of its category. More...
 
std::map< char, StateBlockConstPtr > getStateBlockMap () const
 Returns the state blocks by key. More...
 
std::map< char, StateBlockPtr > getStateBlockMap ()
 Returns the state blocks by key. More...
 
std::vector< StateBlockConstPtr > getStateBlockVec () const
 Returns the state blocks, ordered by key. More...
 
std::vector< StateBlockPtr > getStateBlockVec ()
 Returns the state blocks, ordered by key. More...
 
StateBlockConstPtr getP () const
 Returns the state block of key 'P' (nullptr if none) More...
 
StateBlockConstPtr getO () const
 Returns the state block of key 'O' (nullptr if none) More...
 
StateBlockPtr getP ()
 Returns the state block of key 'P' (nullptr if none) More...
 
StateBlockPtr getO ()
 Returns the state block of key 'O' (nullptr if none) More...
 
virtual void fix ()
 Fixes all the state blocks. More...
 
virtual void unfix ()
 Unfixes all the state blocks. More...
 
virtual bool isFixed () const
 Returns whether all the state blocks are fixed. More...
 
StateBlockPtr emplaceStateBlock (const char key, const std::string &_type, const Eigen::VectorXd &_vector, const bool &_fixed)
 Emplaces a state block. More...
 
StateBlockPtr emplaceStateBlockZero (const char key, const std::string &_type, const bool &_fixed)
 Emplaces a state block with zero state. More...
 
bool hasStateBlock (const StateBlockConstPtr &_sb) const
 Returns whether the state block belongs to this node. More...
 
bool setStateBlock (const char _sb_key, const StateBlockPtr &_sb)
 Replaces the existing state block of a key. More...
 
bool stateBlockKey (const StateBlockConstPtr &_sb, char &_key) const
 Gets the key of a state block of this node. Returns false if not found. More...
 
virtual StateBlockConstPtr getStateBlock (const char &_sb_key) const
 Returns the state block of a key (nullptr if none) More...
 
virtual StateBlockPtr getStateBlock (const char &_sb_key)
 Returns the state block of a key (nullptr if none) More...
 
void setProblem (ProblemPtr _problem) override
 Sets the problem (if not set yet) and notifies it of all the state blocks and prior factors. More...
 
virtual void remove (bool viral_remove_parent_without_children=false)
 Removes the node: its state blocks and the factors constraining them. More...
 
bool hasChildren () const override
 Returns whether the node has children in the Wolf tree. More...
 
void emplaceFactorStateBlock (const char &_key, const Eigen::VectorXd &_x, const Eigen::MatrixXd &_cov, unsigned int _start_idx=0)
 Emplaces an absolute (prior) factor on the state block of a key, or on a segment of it. More...
 
void emplacePriors ()
 Emplaces the prior factors (or fixes the states) according to the states' priors. More...
 
FactorBaseConstPtrSet getFactoredBySet () const
 Returns the factors constraining this node. More...
 
FactorBasePtrSet getFactoredBySet ()
 Returns the factors constraining this node. More...
 
void getFactoredBySet (FactorBaseConstPtrSet &_fac_set) const
 Adds the factors constraining this node to a set. More...
 
void getFactoredBySet (FactorBasePtrSet &_fac_set)
 Adds the factors constraining this node to a set. More...
 
FactorBaseConstPtrSet getSensoryFactorSet () const
 Returns the factors constraining this node that have a feature (not priors) More...
 
FactorBasePtrSet getSensoryFactorSet ()
 Returns the factors constraining this node that have a feature (not priors) More...
 
std::map< char, FactorBaseConstPtr > getPriorFactorMap () const
 Returns the prior factors by key. More...
 
std::map< char, FactorBasePtr > getPriorFactorMap ()
 Returns the prior factors by key. More...
 
FactorBaseConstPtr getPriorFactor (char) const
 Returns the prior factor of a key (nullptr if none) More...
 
FactorBasePtr getPriorFactor (char)
 Returns the prior factor of a key (nullptr if none) More...
 
FactorBaseConstPtrList getFactorsOf (ProcessorBaseConstPtr _processor_ptr, const std::string &type="") const
 Returns the factors constraining this node created by a processor (and of a type, if not empty) More...
 
FactorBasePtrList getFactorsOf (ProcessorBasePtr _processor_ptr, const std::string &type="")
 Returns the factors constraining this node created by a processor (and of a type, if not empty) More...
 
bool hasFactor (FactorBaseConstPtr _fac) const
 Returns whether the factor constrains this node. More...
 
VectorComposite getState (const StateKeys &_keys="") const
 Returns the state of the given keys (all if empty) More...
 
void setState (const VectorComposite &_state, const bool _notify=true)
 Sets the state of the keys in the composite. More...
 
void setState (const Eigen::VectorXd &_state, const StateKeys &_keys, const std::list< SizeEigen > &_sizes, const bool _notify=true)
 Sets the state of the given keys from a vector split in the given sizes. More...
 
void setState (const Eigen::VectorXd &_state, const StateKeys &_keys, const bool _notify=true)
 Sets the state of the given keys from a vector (the concatenation of their states) More...
 
void setState (const StateKeys &_keys, const std::list< Eigen::VectorXd > &_vectors, const bool _notify=true)
 Sets the state of the given keys from a list of vectors, one per key. More...
 
Eigen::VectorXd getStateVector (const StateKeys &_keys) const
 Returns the concatenation of the states of the given keys. More...
 
unsigned int getSize (const StateKeys &_keys="") const
 Returns the size of the states of the given keys (all if empty) More...
 
unsigned int getLocalSize (const StateKeys &_keys="") const
 Returns the local (tangent) size of the states of the given keys (all if empty) More...
 
bool getCovariance (const StateKeys &_keys, Eigen::MatrixXd &_cov) const
 Gets the covariance of the states of the given keys from the problem. Returns false if not available. More...
 
void perturb (double amplitude=0.01)
 Perturbs the non-fixed state blocks with random noise following a uniform distribution in [-amplitude, amplitude] (in the tangent space) More...
 
bool isCapture () const
 Returns whether the node is a capture. More...
 
bool isFrame () const
 Returns whether the node is a frame. More...
 
bool isLandmark () const
 Returns whether the node is a landmark. More...
 
bool isSensor () const
 Returns whether the node is a sensor. More...
 
- Public Member Functions inherited from wolf::NodeBase
 NodeBase (const std::string &_category, const std::string &_type="Undefined", const std::string &_name="")
 Constructor. More...
 
virtual ~NodeBase ()=default
 Destructor. More...
 
unsigned int nodeId () const
 Returns the node id, unique over the whole Wolf tree. More...
 
std::string getCategory () const
 Returns the category of the node. More...
 
std::string getType () const
 Returns the type (subcategory) of the node. More...
 
std::string getName () const
 Returns the name of the node. More...
 
bool isRemoving () const
 Returns whether the node is being removed. More...
 
virtual bool hasChildren () const =0
 Returns whether the node has children in the Wolf tree. More...
 
void setType (const std::string &_type)
 Sets the type (subcategory) of the node. More...
 
void setName (const std::string &_name)
 Sets the name of the node. More...
 
ProblemConstPtr getProblem () const
 Returns the problem the node belongs to. More...
 
ProblemPtr getProblem ()
 Returns the problem the node belongs to. More...
 

Static Public Member Functions

template<typename classType , typename... T>
static std::shared_ptr< classType > emplace (FrameBasePtr _frm_ptr, T &&... all)
 Creates a capture of class classType, emplaces its priors and links it to the frame. More...
 

Protected Member Functions

void setProblem (ProblemPtr _problem) override final
 Sets the problem to the capture and its features, and updates the last capture of the sensor. More...
 
- Protected Member Functions inherited from wolf::NodeStateBlocks
virtual void removeStateBlock (const char &_sb_key)
 Removes the state block of a key (and notifies the problem) More...
 
void transform (const VectorComposite &_transformation)
 Transforms all the state blocks (to another reference frame) More...
 
void printState (bool _factored_by, bool _metric, bool _state_blocks, std::ostream &_stream, std::string _tabs) const
 Prints the state blocks and their priors. More...
 
CheckLog localCheck (bool _verbose, std::ostream &_stream, std::string _tabs) const
 Checks the consistency of the state blocks and the factors constraining them. More...
 
virtual void setProblem (ProblemPtr _prob_ptr)
 Sets the problem the node belongs to. More...
 

Protected Attributes

unsigned int capture_id_
 Capture id, unique among captures. More...
 
TimeStamp time_stamp_
 Time stamp. More...
 
- Protected Attributes inherited from wolf::NodeBase
ProblemWPtr problem_ptr_
 Problem the node belongs to. More...
 
unsigned int node_id_
 Node id. It is unique over the whole Wolf Tree. More...
 
std::string node_category_
 Text label identifying the category of node ("SENSOR", "FEATURE", etc) More...
 
std::string node_type_
 Type or subcategory of node (derived class name: "SensorOdom2d", etc) More...
 
std::string node_name_
 
bool is_removing_
 A flag for safely removing nodes from the Wolf tree. See remove(). More...
 

Friends

class FeatureBase
 
class FactorBase
 
class FrameBase
 

Detailed Description

Base class of captures: a sensor measurement taken at a time stamp, linked to a frame, with the features extracted from it. It holds the dynamic state blocks of the sensor, if any.

Constructor & Destructor Documentation

◆ CaptureBase()

wolf::CaptureBase::CaptureBase ( const std::string &  _type,
const TimeStamp &  _ts,
SensorBasePtr  _sensor_ptr = nullptr,
const TypeComposite &  _state_types = {},
const VectorComposite &  _state_vectors = {},
const PriorComposite &  _state_priors = {} 
)

Constructor.

Parameters
_typeTO BE HARDCODED IN THE DERIVED CLASS CONSTRUCTOR: derived type name
_tsTimeStamp of the capture.
_sensor_ptrPointer to the sensor that produced the capture. If unknown: nullptr.
_state_typesComposite of types of the states that the capture can have. Probably to be hardcoded in the derived class constructor.
_state_vectorsComposite of vectors of the states of the capture. A 'StateBlock' for each key in '_state_vectors' will be emplaced (of the type specified in '_state_types'). Not all keys of '_state_types' are required to be specified, but all keys of '_state_vectors' should be in '_state_types'.
_state_priorsComposite of priors (initial_guess, fix or factor) of the states of the capture. Not all keys of '_state_vectors' are required to be specified, but all keys of '_state_priors' should be in '_state_vectors'.

◆ ~CaptureBase()

wolf::CaptureBase::~CaptureBase ( )
overridedefault

Member Function Documentation

◆ check()

bool wolf::CaptureBase::check ( CheckLog &  _log,
bool  _verbose,
std::ostream &  _stream,
std::string  _tabs = "" 
) const

Checks the consistency of this node and its children, composing the log.

Parameters
_logThe log to store check results.
_verboseWhether to enable verbose output.
_streamThe output stream to print to.
_tabsThe tabs to use for indentation.
Returns
true if the log is consistent, false otherwise

◆ emplace()

template<typename classType , typename... T>
std::shared_ptr< classType > wolf::CaptureBase::emplace ( FrameBasePtr  _frm_ptr,
T &&...  all 
)
static

Creates a capture of class classType, emplaces its priors and links it to the frame.

Parameters
_frm_ptrPointer to the frame to link the new capture to.
allVariadic template arguments to forward to the constructor of classType.
Returns
A shared pointer to the newly created capture.

◆ emplaceDriftFactor()

FactorBasePtr wolf::CaptureBase::emplaceDriftFactor ( CaptureBasePtr  _capture_origin,
char  _key,
bool  _apply_loss_function 
)
virtual

Emplaces a FactorBlockDifference with zero difference between the state _key of this capture and _capture_origin, with the drift covariance of the sensor for the elapsed time. Returns the factor.

Parameters
_capture_originThe origin capture to add the factor drift.
_keyThe key of the state to be factored.
_apply_loss_functionWhether to apply a loss function to the factor.

◆ fix()

void wolf::CaptureBase::fix ( )
overridevirtual

Fixes all the state blocks.

Reimplemented from wolf::NodeStateBlocks.

◆ getFactorList() [1/4]

FactorBasePtrList wolf::CaptureBase::getFactorList ( )

Returns the factors of all the features of the capture.

◆ getFactorList() [2/4]

FactorBaseConstPtrList wolf::CaptureBase::getFactorList ( ) const

Returns the factors of all the features of the capture.

◆ getFactorList() [3/4]

void wolf::CaptureBase::getFactorList ( FactorBaseConstPtrList &  _fac_list) const

Adds the factors of all the features of the capture to a list.

◆ getFactorList() [4/4]

void wolf::CaptureBase::getFactorList ( FactorBasePtrList &  _fac_list)

Adds the factors of all the features of the capture to a list.

◆ getFeatureList() [1/2]

FeatureBasePtrList wolf::CaptureBase::getFeatureList ( )
inline

Returns the features of the capture.

◆ getFeatureList() [2/2]

FeatureBaseConstPtrList wolf::CaptureBase::getFeatureList ( ) const
inline

Returns the features of the capture.

◆ getFrame() [1/2]

FrameBasePtr wolf::CaptureBase::getFrame ( )
inline

Returns the frame the capture belongs to (nullptr if none)

◆ getFrame() [2/2]

FrameBaseConstPtr wolf::CaptureBase::getFrame ( ) const
inline

Returns the frame the capture belongs to (nullptr if none)

◆ getSensor() [1/2]

SensorBasePtr wolf::CaptureBase::getSensor ( )
inline

Returns the sensor that produced the capture (nullptr if unknown)

◆ getSensor() [2/2]

SensorBaseConstPtr wolf::CaptureBase::getSensor ( ) const
inline

Returns the sensor that produced the capture (nullptr if unknown)

◆ getSensorIntrinsic() [1/2]

StateBlockPtr wolf::CaptureBase::getSensorIntrinsic ( )
inline

Returns the sensor state block of key 'I' (see getStateBlock())

◆ getSensorIntrinsic() [2/2]

StateBlockConstPtr wolf::CaptureBase::getSensorIntrinsic ( ) const
inline

Returns the sensor state block of key 'I' (see getStateBlock())

◆ getSensorO() [1/2]

StateBlockPtr wolf::CaptureBase::getSensorO ( )
inline

Returns the sensor state block of key 'O' (see getStateBlock())

◆ getSensorO() [2/2]

StateBlockConstPtr wolf::CaptureBase::getSensorO ( ) const
inline

Returns the sensor state block of key 'O' (see getStateBlock())

◆ getSensorP() [1/2]

StateBlockPtr wolf::CaptureBase::getSensorP ( )
inline

Returns the sensor state block of key 'P' (see getStateBlock())

◆ getSensorP() [2/2]

StateBlockConstPtr wolf::CaptureBase::getSensorP ( ) const
inline

Returns the sensor state block of key 'P' (see getStateBlock())

◆ getStateBlock() [1/2]

StateBlockConstPtr wolf::CaptureBase::getStateBlock ( const char &  _key) const
overridevirtual

Returns the state block of a key: the sensor's one if it is a static sensor state, the capture's own one otherwise.

Reimplemented from wolf::NodeStateBlocks.

◆ getStateBlock() [2/2]

StateBlockPtr wolf::CaptureBase::getStateBlock ( const char &  _key)
overridevirtual

Returns the state block of a key: the sensor's one if it is a static sensor state, the capture's own one otherwise.

Reimplemented from wolf::NodeStateBlocks.

◆ getTimeStamp()

TimeStamp wolf::CaptureBase::getTimeStamp ( ) const
inline

Returns the time stamp.

◆ hasChildren()

bool wolf::CaptureBase::hasChildren ( ) const
overridevirtual

Returns whether the capture has children: features or factors constraining it.

Implements wolf::NodeBase.

◆ hasFeature()

bool wolf::CaptureBase::hasFeature ( const FeatureBaseConstPtr &  _feature) const

Returns whether the feature belongs to the capture.

◆ id()

unsigned int wolf::CaptureBase::id ( ) const
inlineoverridevirtual

Returns the id of the node, unique among the nodes of its category.

Implements wolf::NodeStateBlocks.

◆ isMotion()

bool wolf::CaptureBase::isMotion ( ) const
inlinevirtual

Returns whether the capture is a motion capture (CaptureMotion)

Reimplemented in wolf::CaptureMotion.

◆ link()

void wolf::CaptureBase::link ( FrameBasePtr  _frm_ptr)

Links the capture to a frame.

Parameters
_frm_ptrPointer to the frame.

◆ localCheck()

CheckLog wolf::CaptureBase::localCheck ( bool  _verbose,
std::ostream &  _stream,
std::string  _tabs = "" 
) const
virtual

Checks the consistency of this node (not of its children)

Parameters
_verboseWhether to print verbose output.
_streamThe output stream to print to.
_tabsThe tabs to use for indentation.
Returns
A CheckLog object containing the results of the check.

◆ print()

void wolf::CaptureBase::print ( int  depth,
bool  factored_by,
bool  metric,
bool  state_blocks,
std::ostream &  stream = std::cout,
std::string  _tabs = "" 
) const

Prints this node and, depending on the depth, its children.

Parameters
depthThe depth of the printed wolf tree (see Problem::print()).
factored_byWhether to print the factors constraining the nodes.
metricWhether to include metric information.
state_blocksWhether to include state blocks.
streamThe output stream to print to.
_tabsThe tabs to use for indentation.

◆ printHeader()

void wolf::CaptureBase::printHeader ( int  depth,
bool  factored_by,
bool  metric,
bool  state_blocks,
std::ostream &  stream,
std::string  _tabs = "" 
) const
virtual

Prints the information of this node (not of its children)

Parameters
depthThe depth of the printed wolf tree (see Problem::print()).
factored_byWhether to print the factors constraining the node.
metricWhether to print metric information.
state_blocksWhether to print state blocks information.
streamThe output stream to print to.
_tabsThe tabs to use for indentation.

Reimplemented in wolf::CaptureMotion.

◆ process()

bool wolf::CaptureBase::process ( )

Processes the capture with its sensor (see SensorBase::process())

Returns
false if the sensor is disabled or the capture is not valid, true otherwise

◆ remove()

void wolf::CaptureBase::remove ( bool  viral_remove_parent_without_children = false)
overridevirtual

Removes the capture, its features and their factors.

Parameters
viral_remove_parent_without_childrenIf true, removes the parent if it has no other children.

Reimplemented from wolf::NodeStateBlocks.

◆ setProblem()

void wolf::CaptureBase::setProblem ( ProblemPtr  _problem)
finaloverrideprotectedvirtual

Sets the problem to the capture and its features, and updates the last capture of the sensor.

Reimplemented from wolf::NodeBase.

◆ setSensor()

void wolf::CaptureBase::setSensor ( const SensorBasePtr  sensor_ptr)
inlinevirtual

Sets the sensor that produced the capture.

◆ setTimeStamp()

void wolf::CaptureBase::setTimeStamp ( const TimeStamp &  _ts)
inline

Sets the time stamp.

◆ setTimeStampToNow()

void wolf::CaptureBase::setTimeStampToNow ( )
inline

Sets the time stamp to the current time.

◆ shared_from_this_capture() [1/2]

CaptureBasePtr wolf::CaptureBase::shared_from_this_capture ( )
inline

Returns a shared pointer to this capture.

◆ shared_from_this_capture() [2/2]

CaptureBaseConstPtr wolf::CaptureBase::shared_from_this_capture ( ) const
inline

Returns a shared pointer to this capture.

◆ unfix()

void wolf::CaptureBase::unfix ( )
overridevirtual

Unfixes all the state blocks.

Reimplemented from wolf::NodeStateBlocks.

Friends And Related Function Documentation

◆ FactorBase

friend class FactorBase
friend

◆ FeatureBase

friend class FeatureBase
friend

◆ FrameBase

friend class FrameBase
friend

Member Data Documentation

◆ capture_id_

unsigned int wolf::CaptureBase::capture_id_
protected

Capture id, unique among captures.

◆ time_stamp_

TimeStamp wolf::CaptureBase::time_stamp_
protected

Time stamp.


The documentation for this class was generated from the following files: